package com.nxg.pm04.util;

import android.os.Handler;

public class URLDTO {

    private  static  String url = "http://10.0.2.2/api/values/";

    public static void findByAllPM(String assetName, String taskName, String date, Handler handler){
        Http.get(url+"findByAllPM?assetName="+assetName+"&taskName="+taskName+"&date="+date,handler,1);
    }
    public static void findByAllPMTest(String assetName, String taskName, Handler handler){
        Http.get(url+"findByAllPMTest?assetName="+assetName+"&taskName="+taskName,handler,1);
    }
    public static void updateIsTaskDone(int PMID, boolean taskDone, Handler handler){
        Http.get(url+"updateIsTaskDone?PMID="+PMID+"&taskDone="+taskDone,handler,1);
    }
    public static void insertPM(String assetName, String taskName, String scheduleModel,String date,String km, Handler handler){
        Http.get(url+"insertPM?assetName="+assetName+"&taskName="+taskName+"&scheduleModel="+scheduleModel+"&date="+date+"&km="+km,handler,1);
    }
}
